package com.yq.xchaos.app;

import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;
import com.tencent.tinker.loader.shareutil.ShareConstants;
import com.yq.chaos.base.app.BaseApp;
import com.yq.xchaos.ui.act.MainActivity;

/**
 * 主上下文类
 */

public class App extends BaseApp {
    public App() {
        super(ShareConstants.TINKER_ENABLE_ALL, "com.yq.upapp.app.SampleApplicationLike",
                "com.tencent.tinker.loader.TinkerLoader", false);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        //设置Wifi下自动下载
        Beta.autoDownloadOnWifi = false;
       // 添加可显示弹窗的Activity
        Beta.canShowUpgradeActs.add(MainActivity.class);
        // 这里实现SDK初始化，appId替换成你的在Bugly平台申请的appId
        Bugly.init(this, "d140914682", true);
    }
}
